package club.dortware.client.module.impl.exploit.disabler;

import club.dortware.client.util.impl.networking.PacketUtil;
import net.minecraft.network.Packet;

public class PacketSleepThread extends Thread {
    private Packet packet;
    private long delay;

    public PacketSleepThread(Packet packet, long delay) {
        this.packet = packet;
        this.delay = delay;
    }

    @Override
    public void run() {
        try {
            sleep(this.delay);
            PacketUtil.sendPacketNoEvent(packet);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
